package cn.hp.service;

import java.util.List;

import org.springframework.security.core.userdetails.UserDetailsService;

import cn.hp.domain.Role;
import cn.hp.domain.SysUser;
//在UserDetailsService接口中有一个方法loadUserByUsername
public interface UserService extends UserDetailsService{

	List<SysUser> findAll();

	void save(SysUser sysUser);

	Boolean uniqueName(String username);

	SysUser findById(Integer id);

	List<Role> findRolePermission(Integer id);

	List<Role> findUserRole(Integer id);

	void addRoleToUser(Integer id, Integer[] ids);



	
	
}
